home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15803 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.nyu.edu!schonberg!dewar
  2. From: dewar@cs.nyu.edu (Robert Dewar)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
  4. Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
  5. Date: 8 Apr 1996 00:15:37 -0400
  6. Organization: Courant Institute of Mathematical Sciences
  7. Message-ID: <dewar.828936837@schonberg>
  8. References: <JSA.96Feb16135027@organon.com> <dewar.828757752@schonberg> <danpop.828819479@rscernix> <dewar.828879781@schonberg> <4k9qhe$65r@solutions.solon.com>
  9. NNTP-Posting-Host: schonberg.cs.nyu.edu
  10. X-Newsreader: NN version 6.5.0 (NOV)
  11.  
  12. Peter said
  13.  
  14. "Now, as it happens, Linux does do the right thing - if I define my own
  15. read(), I get *my* read any time I call read, so the implementation is
  16. conforming."
  17.  
  18. Boy, this sure has wandered! THe original issue was the semantic behavior
  19. of read. Unlike other unices, in Linux, the bounds check for the read
  20. buffer is based on the requested count, rather than the actual count
  21. of data bytes read. It is hard to say either approach is right or
  22. wrong, but they are different enough to cause portability problems.
  23.  
  24.